import request from '@/utils/request'

// 查询客户意向列表
export function listCustPlan(query) {
  return request({
    url: '/house_sale/CustPlan/list',
    method: 'get',
    params: query
  })
}

// 查询客户意向详细
export function getCustPlan(planid) {
  return request({
    url: '/house_sale/CustPlan/' + planid,
    method: 'get'
  })
}

// 新增客户意向
export function addCustPlan(data) {
  return request({
    url: '/house_sale/CustPlan',
    method: 'post',
    data: data
  })
}

// 修改客户意向
export function updateCustPlan(data) {
  return request({
    url: '/house_sale/CustPlan',
    method: 'put',
    data: data
  })
}

// 删除客户意向
export function delCustPlan(planid) {
  return request({
    url: '/house_sale/CustPlan/' + planid,
    method: 'delete'
  })
}
